package com.dfbz.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.*;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
@RestController
public class HelloController {
    @GetMapping("/hello")
    public List<Map> hello() {

        List<Map> list = new ArrayList<>();


        for (int i = 0; i < 100000; i++) {
            HashMap<Object, Object> test = new HashMap<>();
            test.put("userId", i);
            test.put("username", UUID.randomUUID().toString());
            test.put("age", (int) (Math.random() * 8));

            list.add(test);
        }

        return list;
    }
}
